package FirstExampe.last;

public class Test {
	public static void main(String[] args) {
		Price price1 = new RegularPrice();
		Price price2 = new NewPrice();
		Price price3 = new ChildPrice();
		Movie movie1 = new Movie("a", price1);
		Movie movie2 = new Movie("b", price2);
		Movie movie3 = new Movie("c", price3);
//		AMovie movie1 = new RegularMovie("a");
//		AMovie movie2 = new NewMovie("b");
//		AMovie movie3 = new ChildMovie("c");
		Rental rental1 = new Rental(movie1, 1);
		Rental rental2 = new Rental(movie2, 2);
		Rental rental3 = new Rental(movie3, 3);
		Customer customer = new Customer("fdd");
		customer.addRentals(rental1);
		customer.addRentals(rental2);
		customer.addRentals(rental3);
		System.out.println(customer.statment());
	}
}
